package com.rk.user.client;
import com.rk.hosp.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author :Rk.
 * @date : 2022/12/2
 */
@Component
@FeignClient("service-user")
public interface PatientFeignClient {

    /**
     * 通过id获取就诊人
     * @param id
     * @return
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    public Patient getByid(@PathVariable Long id);


}
